package com.taojie.graduation.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 品牌
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "brand")
@ApiModel("品牌")
public class Brand {
    /**
     * 品牌id
     */
    @ApiModelProperty("品牌id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 品牌名称
     */
    @ApiModelProperty("品牌名称")
    @TableField(value = "name")
    private String name;

    /**
     * 品牌图片地址
     */
    @ApiModelProperty("品牌图片")
    @TableField(value = "image")
    private String image;
}